<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>统一地图平台API</title>
    <meta name="keywords" content="统一地图平台api">
    <meta name="description" content="统一地图平台api">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <link href="./../script/api.css" rel="stylesheet">
</head>

<body class="restdemo-page">
    <div class="page_wrapper">
        <div data-tpl="" class="content-sidebar has_right">
            <div class="content">
                <div class="crumbs">
                    您现在的位置：
                    <a>开发</a> &gt;
                    <a>地图JS API</a> &gt;
                    <a>格式转换</a></div>
                <article>
                    <h1 class="title">
                        格式转换
                        <span class="update-time">最后更新时间: 2020年04月30日</span>
                    </h1>
                    <div>
                        <div class="md-container">
                            <h2>获取格式转换服务对象</h2>
                            <div class="md-demo-code-wrapper">
                                <div class="md-demo-code-header"><a class="active">JavaScript</a></div>
                                <div class="md-demo-code-content">
                                    <div class="md-demo-code-content-item active">
                                        <pre><code class="js hljs javascript">
     map.Factory.Utils("TerraformerUtils",function(obj){
        // obj为TerraformerUtils工具类。
       });
                                        </code></pre>
                                    </div>
                                </div>
                            </div>
                            <h2>TerraformerUtils静态方法</h2>
                            <div class="md-atomic">
                                <div class="table-container" style="width:100%;">
                                    <table class="md-table">
                                        <tbody>
                                            <tr>
                                                <th>
                                                    <p>方法名</p>
                                                </th>
                                                <th>
                                                    <p>方法说明</p>
                                                </th>
                                                <th>
                                                    <p>参数</p>
                                                </th>
                                                <th>
                                                    <p>返回值</p>
                                                </th>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <p>ArctoGeojson</p>
                                                </td>
                                                <td>
                                                    <p>Arcgis要素得Geometry值转换为geojso的对象的Geometry值</p>
                                                </td>
                                                <td>
                                                    <p>geo: any, Arcgis要素得Geometry值</p>
                                                </td>
                                                <td>
                                                    <p> Geojson的对象的Geometry值</p>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <p>GeojsonToArc</p>
                                                </td>
                                                <td>
                                                    <p>Geojson对象的geometry值转换为Arcgis要素得Geometry值</p>
                                                </td>
                                                <td>
                                                    <p>geo: any, Geojson对象的Geometry值</p>
                                                </td>
                                                <td>
                                                    <p> Arcgis要素得Geometry值</p>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <p>GeoGeometryToWkt</p>
                                                </td>
                                                <td>
                                                    <p>Geojson的Geometry 转 WKT串</p>
                                                </td>
                                                <td>
                                                    <p>geo: any, Geojson对象的Geometry值</p>
                                                </td>
                                                <td>
                                                    <p>WKT值</p>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <p>WktToGeoGeometry</p>
                                                </td>
                                                <td>
                                                    <p>WKT 值转Geojson对象Geometry值</p>
                                                </td>
                                                <td>
                                                    <p>WKT:any WKT串的值</p>
                                                </td>
                                                <td>
                                                    <p>Geojson对象Geometry值</p>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <p>ArcToGeoCollection</p>
                                                </td>
                                                <td>
                                                    <p>Arcgis Feature对象集合转Geojson对象</p>
                                                </td>
                                                <td>
                                                    <p>features:Array Arcgis Feature数组对象</p>
                                                </td>
                                                <td>
                                                    <p>Geojson对象</p>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <p>ArcToGeoJson</p>
                                                </td>
                                                <td>
                                                    <p>Arcgis 单个Feature转 Geojson对象</p>
                                                </td>
                                                <td>
                                                    <p>feature:any 单个Arcgis Feature对象</p>
                                                </td>
                                                <td>
                                                    <p>Geojson对象</p>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </article>
            </div>
        </div>
    </div>
</body>

</html>